﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;

namespace WebProveedores
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //0 no es intranet, 1 es intranet
            string intranet = ConfigurationManager.AppSettings["intranet"].ToString();
            
        }

        protected void LinkButton1_Click(object sender, EventArgs e)
        {
            //0 no es intranet, 1 es intranet
            string intranet = ConfigurationManager.AppSettings["intranet"].ToString();
            if (intranet.Equals("0"))
            {
                Session.Abandon();
                Session.RemoveAll();
                Response.Redirect("Login.aspx");
            }
            else
            {

                Session.Abandon();
                Session.RemoveAll();
                Response.Redirect("LoginIntra.aspx");
            }
        }
    }
}
